using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using BookStore.Solution.Entities;
using BookStore.Solution.BLL;

namespace BookStore.Solution.Presentation
{
    public partial class frmSystemLog : DevComponents.DotNetBar.OfficeForm
    {
        public frmSystemLog(SystemLog entity)
        {
            InitializeComponent();
            SystemLogManager manager = new SystemLogManager();
            txtAction.Text = entity.Action;
            txtEmployee.Text = manager.GetSingle(entity.SystemLogID).Employee.EmployeeName;
            dtiTime.Value = entity.Time;
            txtSystemLogID.Text = entity.SystemLogID.ToString();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            Close();
        }

    }
}